<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/23
 * Time: 10:55
 * 添加停课记录
 */
//获取参数
$oscr_ouid        = $route->bodyParams['oscr_ouid'];
$oscr_ocid        = $route->bodyParams['oscr_ocid'];
$oscr_oesid       = $route->bodyParams['oscr_oesid'];
$oscr_classid       = $route->bodyParams['oscr_classid'];

//写入数组
$insertArr = [
    'oscr_ouid'          => $oscr_ouid,
    'oscr_ocid'          => $oscr_ocid,
    'oscr_oesid'          => $oscr_oesid,
    'oscr_classid'          => $oscr_classid,
    'oscr_create_time'   => time(),
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_stop_class_record",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );